/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.fee.entity.Detail;
import org.apache.ibatis.annotations.Param;

/**
 * 计费明细MAPPER接口
 * @author weisong
 * @version 2017-09-22
 */
@MyBatisMapper
public interface DetailMapper extends BaseMapper<Detail> {
    //根据id更新状态
    public int updateStatusById(@Param("status")Integer status, @Param("id")String id);

    //数据源进行计算时，根据idNumber(数据源+行号) 和是否有已经被 结算管理 引用的费用明细  查询
    int countByIdNumberAndStatus(@Param(value = "idNumber")String idNumber,@Param(value = "status")Integer status);

    //根据idNumber(数据源+行号) 删除已生成的费用明细
    void deleteByIdNumber(@Param(value = "idNumber")String idNumber);
}